﻿@model NVSecurity.Models.SupportOnline

@{
    ViewBag.Title = "Edit";
}
<script src="~/nicEditor/nicEdit.js"></script>
<script>
    bkLib.onDomLoaded(function () {
        new nicEditor({ fullPanel: true, uploadURI: '/@NVSecurity.Models.GlobalVariables.PathFolderName/Home/nicUpload' }).panelInstance('area');

    });
    bkLib.onDomLoaded(function () {
        new nicEditor({ fullPanel: true, uploadURI: '/@NVSecurity.Models.GlobalVariables.PathFolderName/Home/nicUpload' }).panelInstance('area1');

    });
    bkLib.onDomLoaded(function () {
        new nicEditor({ fullPanel: true, uploadURI: '/@NVSecurity.Models.GlobalVariables.PathFolderName/Home/nicUpload' }).panelInstance('area2');

    });
</script>
@using (Html.BeginForm("Edit", "SupportOnline", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <div class="mar10 borall">
        <div class="floatl">
            <span class="floatl">
                <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
            <span class="title-name">Chỉnh sửa</span>
        </div>
        <ul class="floatr toolbar-list">
            <li id="toolbar-cancel" class="button">
                <a class="toolbar" href="/@NVSecurity.Models.GlobalVariables.PathFolderName/Training/Index">
                    <span class="icon-32-cancel"></span>
                    Hủy bỏ
                </a>
            </li>
            <li class="button">
                <div class="toolbar">
                    <span class="icon-32-apply"></span>
                    <input type="submit" value="Lưu" />
                </div>
            </li>
        </ul>
    </div>
    <!--end borall-->
    
    <div class="clear0"></div>
    <div class="mar10 borall">
        <div class="div100">
            <div>
                <fieldset class="fromlist">
                    <ul>
                        @Html.HiddenFor(model => model.ID)
                        <li>
                            <label>Điện thoại 1</label>
                            @Html.TextBoxFor(m => m.Phone1)
                        </li>
                        <li>
                            <label>Điện thoại 2</label>
                            @Html.TextBoxFor(m => m.Phone2)
                        </li>
                        <li>
                            <label>Điện thoại 3</label>
                            @Html.TextBoxFor(m => m.Phone3)
                        </li>
                        <li>
                            <label>Yahoo</label>
                            @Html.TextBoxFor(m => m.Yahoo)
                        </li>
                        <li>
                            <label>Skype</label>
                            @Html.TextBoxFor(m => m.Skype)
                        </li>

                    </ul>
                </fieldset>
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
